﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;

namespace UIShare
{
    public partial class BasicPrinterForm : BasicForm
    {
        public BasicPrinterForm()
        {
            InitializeComponent();
        }

        private XtraReport _report;
        public XtraReport Report
        {
            get { return _report; }
            set
            {
                _report = value;
                onReportChanged();
            }
        }

        private void onReportChanged()
        {
            Report.CreateDocument();
            this.prc_Main.PrintingSystem = Report.PrintingSystem;
        }
    }
}
